package cn.zcib.film.mapper;

import cn.zcib.film.bean.Role;
import cn.zcib.film.bean.Subject;
import cn.zcib.film.bean.vo.RoleVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
@Mapper
public interface RoleMapper {

    //返回所有类型数据
    List<Role> findRoles(RoleVO roleVO);

    //添加角色
    int addRole(Role role);
    //更新角色
    int updateRole(Role role);

    //删除角色
    int deleteRole(Integer rId);

    //返回所有类型数据
    List<Role> findRolesNoArgs();

    Role getRoleById(Integer aId);

}
